home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / edje / data / template / build_theme.sh next >
Linux/UNIX/POSIX Shell Script  |  2006-01-09  |  407b  |  17 lines

  1. #!/bin/sh -e
  2. THEME="default"
  3. APPNAME=""
  4. edje_cc -v -id ./images -fd ./fonts $THEME.edc $THEME.edj
  5. if [ $? = "0" ]; then
  6.     if [ "$APPNAME" = "" ]; then
  7.     echo "Build was successful"
  8.     else
  9.     PREFIX=`dirname \`which $APPNAME\` | sed 's/bin//'`
  10.     sudo cp $THEME.edj $PREFIX"share/$APPNAME/themes/"
  11.     echo -n "Installed theme to "
  12.     echo $PREFIX"share/$APPNAME/themes/"
  13.     fi
  14. else
  15.     echo "Building failed"
  16. fi
  17.